from multiprocessing import Process
from service.init import run_app
from websocket.init import run_socketio_app

if __name__ == '__main__':
    # 使用多线程同时启动两个服务
    flask_process = Process(target=run_app, args=[False])
    socketio_process = Process(target=run_socketio_app, args=[False])

    flask_process.start()
    socketio_process.start()

    # 单独启动某一个服务
    # run_socketio_app()
    # run_app()
